package com.kingyea.mobilepolice.orgrole.dao;

import com.kingyea.mobilepolice.orgrole.bean.OrgRole;
import com.kingyea.mobilepolice.util.BasePage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Mr.Lin
 * @version v1.0.0
 * @description OrgRoleMapper
 * @date Created in 2018-04-26 15:25:12
 */
public interface OrgRoleMapper {

    /**
     * 通过ID删除对象
     */
    int deleteByOrgSerialNo(@Param("orgSerialNo") String orgSerialNo);

    /**
     * 保存对象
     */
    int save(OrgRole obj);

    /**
     * 查询列表
     */
    List<OrgRole> search(BasePage<?> condition);

    int batchSave(@Param("orgRoles") List<OrgRole> orgRoles);

}
